package com.htstar.ovms.device.api.feign;


import com.htstar.ovms.common.core.constant.ServiceNameConstants;
import com.htstar.ovms.common.core.util.R;
import com.htstar.ovms.device.api.wrapper.OTAData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(contextId = "deviceGatewayFeign", value = "ovms-device-gateway")
public interface DeviceGatewayFeign {

    @RequestMapping("/OTAUpdata/update")
    public R OTA(@RequestBody OTAData req);

    @RequestMapping("/OTAUpdata/updateBatch")
    public R updateBatch(@RequestBody OTAData req);

}
